<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- 引入标签库-->
<%@ include file="/pages/inc/taglibs.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>顶级组织维护</title>
<%@ include file="/pages/inc/header.jsp" %>
<style> 
body
{ 
	text-align:center
}
</style>
</head>
<body>
	<div class="easyui-layout" style="width:980px;height:400px;">
	<div id="content" region="center" title="顶级组织维护" style="padding:5px;">
	<form id="form" action="/synergy/basic/editTopOrg/" method="post" >
	 <input type="hidden" id="typeParam" name="type">
	<table style="width:960px;">
    	<tr>
    	<td style="border:#cccccc solid 1px;text-align: right;">
		<div class="" style="width:300px;">
			<select style="width: 70%;" id="orgExt" name="orgExt" multiple="multiple" size="17">
				<c:forEach items="${topOrgs}" var="item">
					<option orgCategory='<c:out value="${item.orgCategory}"/>' parentOrg='<c:out value="${item.parentOrgCode}"/>' value='<c:out value="${item.orgExtId}"/>'>
						<c:out value="${item.orgName}" />
					</option>
				</c:forEach>
			</select>
		</div>
		父 组 织:		
		<SELECT class="easyui-combobox" id="parentOrg" name="parentOrg" style="width:210px">
			<option value="">请选择</option>
			<c:forEach items="${parentOrgs}" var="item">			
				<option value="<c:out value='${item.paramCode}'/>" /><c:out value='${item.paramValue}' /></option>
			</c:forEach>
		</SELECT>
		<br/>
		组织类别:
        <select class="easyui-combobox" id="orgCategory" name="orgCategory" style="width:210px;">
            <option value="">请选择</option>
            <option value="SJ">省局</option>
            <option value="DS">市局</option>
            <option value="XJ">县局</option>
        </select>
        <br/>
        <input type="button" value="保存" onclick="updateOrgParam()">
		</td>
		<td style="border:#cccccc solid 1px;text-align: center;">
			<input type="button" value="添加" onclick="addItems()">
			<br/><br/>
			<input type="button" value="移除" onclick="deleteItems()">
		</td>
		<td style="border:#cccccc solid 1px;">
		<div class="" style="width:300px;">
			<SELECT id="orgs" name="orgs" multiple="multiple" size="21" style="width:70%">
				<c:forEach items="${roTopOrgs}" var="item">
					<option name="orgs" value="<c:out value='${item.orgcode}'/>" /><c:out value='${item.cnname}' /></option>
				</c:forEach>
			</SELECT>			
		</div>
		</td>
    	</tr>
	</table>
	</form>
	</div>
    </div>
</body>
<script type="text/javascript">
<%@ include file="/pages/jsp/synOrgExt/synOrgExtEdit.js" %>	
</script>
</html>